"""Basic application tests."""
import pytest


def test_app_creation(app):
    """Test application factory."""
    assert app is not None
    assert app.config['TESTING'] is True


def test_api_docs_endpoint(client):
    """Test API documentation endpoint."""
    response = client.get('/api/docs')
    # Should redirect or return docs page
    assert response.status_code in [200, 301, 302, 308]


def test_health_check(client):
    """Test basic connectivity."""
    # The root endpoint should exist
    response = client.get('/')
    # May return 404 if no root route defined, which is fine
    assert response.status_code in [200, 404]
